package com.kuang.dao;

import com.kuang.pojo.Borrows;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BorrowMapper {
    //增加一条记录
    int addBorrow(Borrows borrows);

    //查询全部记录
    List<Borrows> queryAllBorrow();

    int deleteBorrowById(@Param("borrowId") int id);

    Borrows queryBorrowById(@Param("borrowId") int id);

    int updateBorrow(Borrows borrows);

    int updateBorrowById(@Param("borrowId") int id);


    List<Borrows> queryAllNo(@Param("queryReadersNo") String queryReadersNo);
}
